package org.jarraiders.musiclibrary.client.view;

import org.jarraiders.musiclibrary.client.presenter.TracksPresenter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.Widget;

public class TracksPopupPanel extends PopupPanel {
	private int index;
	private TracksPresenter presenter;

	
	private static TracksPopupPanelUiBinder uiBinder = GWT.create(TracksPopupPanelUiBinder.class);

	interface TracksPopupPanelUiBinder extends UiBinder<Widget, TracksPopupPanel> {
	}

	

	@UiField
	Button editButton;
	@UiField
	Button deleteButton;
	
	public TracksPopupPanel() {
		setWidget(uiBinder.createAndBindUi(this));
	}
	
	
	public TracksPopupPanel(int index) {
		this.index = index;
		setWidget(uiBinder.createAndBindUi(this));
	}

	public TracksPopupPanel(int index, TracksPresenter presenter) {
		this.index = index;
		this.presenter=presenter;
		
		setWidget(uiBinder.createAndBindUi(this));
	}

}
